﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using DataAnnotationsExtensions;   
namespace KpBusiness.Model
{
   public  class Company
    {
       [Key]
        public virtual int CompanyId { get; set; }

        [DisplayName("Company Name")]
       [StringLength(50,ErrorMessage="You Have Crossed Maximum Length Limit")] 
        [Required(ErrorMessage = "Please provide company name")]
        public virtual string CompanyName { get; set; }

        [DisplayName("Location")]
        [StringLength(50, ErrorMessage = "You Have Crossed Maximum Length Limit")]
        [Required(ErrorMessage = "Please provide Location")]
       public virtual string Location { get; set; }

        [DisplayName("Website")]
       [Url(ErrorMessage="PLease Provide Valid Url")] 
        [Required(ErrorMessage = "Please provide company website")]
        public virtual string Website { get; set; }


        public virtual string LogoUrl { get; set; }

        public virtual bool IsActive { get; set; }

        public virtual bool IsComapnyProfileUploaded { get; set; }
        public virtual string FileExt { get; set; }
        public virtual Guid FileId { get; set; }

        public virtual DateTime LastUpdatedDate { get; set; }

        public virtual string LastUpdatedUser { get; set; }

        public virtual Person Referral { get; set; }
    }
}
